package com.chixing.day03_oop;
/*
    该类表示的是：公司类
    封装了 所以公司的共有属性与方法

    访问修饰符
    属性用public 修饰 存在的问题：
        （1）若修改属性名，会出现其他很多地方要修改，可维护性很差
        （2）元信息（meta）被暴露出来了，安全性低

    解决方案：
        public--->private
        public:由public修饰的属性与方法，其他类都能访问
        private:由private修饰的属性与方法，只能本类内部访问
*/
public class Company {
    //属性
    //成员变量（字段） field
    private int companyId;
    private String companyName;
    private String companyType;
    private String compantAddress;
    private long companyTelno;

    //getters & setters
    //属性赋值
    //成员方法 method
    public void setCompanyId(int companyId){
        this.companyId = companyId;
    }
    public void setCompanyName(String companyName){
        this.companyName = companyName;
    }
    public void setCompanyType(String companyType){
        this.companyType = companyType;
    }
    public void setCompantAddress(String compantAddress){
        this.compantAddress = compantAddress;
    }
    public void setCompanyTelno(long companyTelno){
        this.companyTelno = companyTelno;
    }
    //属性取值
    public int getCompanyId(){
        return this.companyId;
    }
    public String getCompanyName(){
        return this.companyName;
    }
    public String getCompanyType(){
        return this.companyType;
    }
    public String getCompantAddress(){
        return this.compantAddress;
    }
    public long getCompanyTelno(){
        return this.companyTelno;
    }

    //方法
    //发布一个新岗位
    public void publishJob(){

    }
    // 查看简历
    public void getResume(){

    }
}
